473,441 Members | 2,119 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,441 software developers and data experts.

Webbrowser Navigate to an embedded resource

I have a small html file that I have added to my project. When I added
"sample.html", I set the build action to "embedded resource".

In the application I would like to do something like this ( but this
doesn't work ):

WebBrowser.Navigate( "MyApplication.Sample.html" )

Does anyone know if

1. it is possible to Navigate to an embedded html page
2. how to Navigate to an embedded hteml page

Thank you.

Aug 11 '06 #1
2 7343
Hello,

I just was reading more and found someone had posted a message about
ediqute and mentioned that someone should be posting in the
winforms.control group. Being new to this site and its capabilitites I
thought I should look around and actually check out that group for this
question as well.

Anyway, I found a solution and here it is:

Dim stream As IO.Stream =
Me.GetType().Assembly.GetManifestResourceStream("M yApplication.Sample.html")

WebBrowser.DocumentStream = stream

Thanks and sorry about the bandwidth...

FishingScout wrote:
I have a small html file that I have added to my project. When I added
"sample.html", I set the build action to "embedded resource".

In the application I would like to do something like this ( but this
doesn't work ):

WebBrowser.Navigate( "MyApplication.Sample.html" )

Does anyone know if

1. it is possible to Navigate to an embedded html page
2. how to Navigate to an embedded hteml page

Thank you.
Aug 11 '06 #2
Hello,

I just was reading more and found someone had posted a message about
ediqute and mentioned that someone should be posting in the
winforms.control group. Being new to this site and its capabilitites I
thought I should look around and actually check out that group for this
question as well.

Anyway, I found a solution and here it is:

Dim stream As IO.Stream =
Me.GetType().Assembly.GetManifestResourceStream("M yApplication.Sample.html")

WebBrowser.DocumentStream = stream

Thanks and sorry about the bandwidth...

FishingScout wrote:
I have a small html file that I have added to my project. When I added
"sample.html", I set the build action to "embedded resource".

In the application I would like to do something like this ( but this
doesn't work ):

WebBrowser.Navigate( "MyApplication.Sample.html" )

Does anyone know if

1. it is possible to Navigate to an embedded html page
2. how to Navigate to an embedded hteml page

Thank you.
Aug 11 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Daniel Frede | last post by:
Hello, I Created a AxSHDocVw.AxWebBrowser in a class and want to Post Values to a WebPage. When I use this class in a Windows application, everything is fine, but in an ASPX page it hangs...
7
by: Dave Booker | last post by:
I am using a WebBrowser object in my .NET 2.0 application, but it is not shown to the user. Every time a timer event triggers it to perform a m_WebBrowser.Navigate() I get that classic IE 'click'...
1
by: L. Chernov | last post by:
Hello, I am trying to work with .Net 2005 WebBrowser object, and put it on a "Windows control library" (embedded in a user control class) and then I am executing it from an ASP.Net webform(with...
2
by: Ryan Ramsey | last post by:
I have been chasing this one down for a week and have narrowed it down to a machine issue. I have the following code: webBrowser.Navigate(http://finao.net/post_dkp.php?database=40); Basically...
11
by: Anil Gupte | last post by:
....and how do I insert one into my form? I used in VB 6.0 last, but cannot figure out where it is in .Net Thanx, -- Anil Gupte www.keeninc.net www.icinema.com
2
by: Vadim Rapp | last post by:
Hello, I want to create a webbrowser object programmatically, navigate to a URL, and then analyze the document. I create the following code (simplified): Dim ie as new webbrowser...
8
by: Ludwig Wittgenstein | last post by:
Hi, all. How can i hook up an InternetExplorer object to a WebBrowser control that I have in my windows form. Basically what I want to do is automate the WebBrowser control via the...
8
by: CJ | last post by:
After you trigger your event and store an internet webpage as an .mht file, then you store the contents of the .mht into a database. Has anyone figured out how to load the contents from the db...
6
by: LEM | last post by:
Hi, I use a Webbrowser component to display a page that has been generate dynamically from my C# program. This page contains some images that are displayed using HTML code like this: <img...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.